package com.assembly;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Scheduled;

import javax.annotation.PostConstruct;

@Slf4j
@Configuration
public class CommonConfig {


    @PostConstruct
    @Scheduled(cron = "0/5 * * * * ?")
    public void test() {
        log.info("测试日志" + System.currentTimeMillis() + " " + CommonCode.SUCCESS);
    }

}
